import { id } from "element-plus/es/locales.mjs";
import { request } from "../utils/request";


//小麦玉米生长周期
export const fetchWheatByPage = (data) => {
  return request.post('/api/wheat/listPage', data)
}

//更新作物产量
export const updateWheat = (data) =>{
  return request.post('/api/wheat/update',data)
}

//删除
export const deleteWheat = (id) =>{
  return request.post(`/api/wheat/delete/${id}`,id)
}

//批量增加
export const uploadWheat = (data) => {
  return request.post('/api/wheat/saveBatch', data)
}

////作物产量年表
export const fetchOutputTablePage = (data) =>{
  return request.post('/api/crops/listPage',data)
}

//更新作物产量
export const updateOutputTable = (data) =>{
  return request.post('/api/crops/update',data)
}

//删除
export const deleteOutputTable = (id) =>{
  return request.post(`/api/crops/delete/${id}`,id)
}

//批量增加
export const uploadOutputTable = (data) => {
  return request.post('/api/crops/saveBatch', data)
}


